<template>
  <div class="textarea" :style="{'height':data.height*40 + (data.height-1)*8 + 'px'}">
    <div class="name">文本框 :</div>
    <el-input v-model="data.value" type="textarea" :style="{'height':data.height*40 + (data.height-1)*8 - 16 + 'px'}" resize="none" placeholder="请输入内容"></el-input>
    
  </div>
</template>
<script>
export default {
  props: {
    data: {
      type: Object
    }
  },
  data() {
    return {
    
    }
  },
  computed: {},
  methods: {
   
   
  },
  mounted() {
    console.log(this.data)
  }
}

</script>
<style lang="less">
.textarea {
  width: 100%;
  display: flex;
  border: 1px dashed #000;
  box-sizing: border-box;
  border-radius: 6px;
  .name {
    padding: 0 10px;
    line-height: 86px;
    white-space: nowrap;
  }
  .el-textarea {
    flex: 1;
    padding-right: 10px;
    margin-top: 8px;
    .el-textarea__inner {
      display: inline-block;
      width: 100%;
      height: 100%;
    }
  }
}

</style>
